function gethtmlfontsize() {
  let htmlwidth =
    document.documentElement.clientWidth || document.body.clientWidth;
  let htmlDom = document.getElementsByTagName("html")[0];
  htmlDom.style.fontSize = htmlwidth / 19.2 + "px";
}
gethtmlfontsize();
window.addEventListener("resize", gethtmlfontsize);